package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InvoiceServiceDetailMapper;
import com.ruoyi.system.domain.InvoiceServiceDetail;
import com.ruoyi.system.service.IInvoiceServiceDetailService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-16
 */
@Service
public class InvoiceServiceDetailServiceImpl implements IInvoiceServiceDetailService 
{
    @Autowired
    private InvoiceServiceDetailMapper invoiceServiceDetailMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public InvoiceServiceDetail selectInvoiceServiceDetailById(Long id)
    {
        return invoiceServiceDetailMapper.selectInvoiceServiceDetailById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param invoiceServiceDetail 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<InvoiceServiceDetail> selectInvoiceServiceDetailList(InvoiceServiceDetail invoiceServiceDetail)
    {
        return invoiceServiceDetailMapper.selectInvoiceServiceDetailList(invoiceServiceDetail);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param invoiceServiceDetail 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertInvoiceServiceDetail(InvoiceServiceDetail invoiceServiceDetail)
    {
        return invoiceServiceDetailMapper.insertInvoiceServiceDetail(invoiceServiceDetail);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param invoiceServiceDetail 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateInvoiceServiceDetail(InvoiceServiceDetail invoiceServiceDetail)
    {
        return invoiceServiceDetailMapper.updateInvoiceServiceDetail(invoiceServiceDetail);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceServiceDetailByIds(Long[] ids)
    {
        return invoiceServiceDetailMapper.deleteInvoiceServiceDetailByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceServiceDetailById(Long id)
    {
        return invoiceServiceDetailMapper.deleteInvoiceServiceDetailById(id);
    }

    public Double selectMoney(String provider, String createTime) {
        return invoiceServiceDetailMapper.selectMoney(provider,createTime);
    }
    public Double selectAllMoneyPrice(String provider, String createTime) {
        return invoiceServiceDetailMapper.selectAllMoneyPrice(provider,createTime);
    }
}
